package com.example.cloud.service.system;

import com.example.cloud.model.system.User;

import java.util.List;

/**
 * Created by wangtao on 2018/2/3.
 */
public interface UserService {
    User findOneFromCache(Long id);
    User findUserByNameFromCache(String loginName);
    List<User> findByAll();
    List<User> findHealthcareFromCache(List<Long> organIds);
    List<User> findByJobFromCache(int jobType);
    List<User> findUserByLogis();
    List<User> findByAccountIdFromCache();
    List<User> findByOrganIdFromCache(Long organId);
    List<User> findByDepartmentId(Long departmentId);
    void doSave(User user);
    void loadCache();
    void doFreeze(List<Long> id);
    void doUse(List<Long> id);
    void doDelete(List<Long> id);
}
